package com.ljq.accessCtrl2;

import com.ljq.accessCtrl.Father1;

/**
 * Description: 不同包的子类
 * Author: A
 * Date: 2025/2/20
 * Time: 16:40
 */
public class Son1 extends Father1 {
    public static void main(String[] args) {
        Father1 father1 = new Father1();
//        father1.name = "xx"; 不能访问
        //创建Son1对象
        Son1 s1 = new Son1();
//        s1.name=""; //Son1无法继承Father1类中使用：默认权限修饰的变量

    }
}
